package com.ruoyi.hotSpot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.hotSpot.domain.HotTripNumber;
import com.ruoyi.hotSpot.domain.dto.TargetRegionParam;
import com.ruoyi.hotSpot.domain.vo.TargetActivityDetails;
import com.ruoyi.hotSpot.service.HotTripNumberService;
import com.ruoyi.hotSpot.mapper.HotTripNumberMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【hot_trip_number(热点区域 行驶次数)】的数据库操作Service实现
* @createDate 2025-02-18 14:02:21
*/
@Service
public class HotTripNumberServiceImpl extends ServiceImpl<HotTripNumberMapper, HotTripNumber>
    implements HotTripNumberService{

    @Autowired
    private HotTripNumberMapper hotTripNumberMapper;

    @Override
    public List<HotTripNumber> getRegionNum(TargetRegionParam targetRegionParam) {
        return hotTripNumberMapper.selectSumByRegionId(targetRegionParam);
    }

    @Override
    public List<HotTripNumber> getTargetNum(TargetRegionParam targetRegionParam) {
        return hotTripNumberMapper.getTargetNum(targetRegionParam);
    }

    @Override
    public List<TargetActivityDetails> getDetailByTaskId(TargetRegionParam targetRegionParam) {
        return hotTripNumberMapper.getDetailByTaskId(targetRegionParam);
    }
}




